.class Lcom/waiqin365/lightapp/im/activity/br;
.super Ljava/lang/Object;

# interfaces
.implements Ljava/lang/Runnable;


# instance fields
.field final synthetic a:Lcom/waiqin365/lightapp/im/activity/bq;


# direct methods
.method constructor <init>(Lcom/waiqin365/lightapp/im/activity/bq;)V
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/lightapp/im/activity/br;->a:Lcom/waiqin365/lightapp/im/activity/bq;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public run()V
    .locals 5

    const/16 v4, 0x8

    const/4 v3, 0x0

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/br;->a:Lcom/waiqin365/lightapp/im/activity/bq;

    iget-object v0, v0, Lcom/waiqin365/lightapp/im/activity/bq;->a:Lcom/waiqin365/lightapp/im/activity/GroupDetailsActivity;

    iget-object v1, p0, Lcom/waiqin365/lightapp/im/activity/br;->a:Lcom/waiqin365/lightapp/im/activity/bq;

    iget-object v1, v1, Lcom/waiqin365/lightapp/im/activity/bq;->a:Lcom/waiqin365/lightapp/im/activity/GroupDetailsActivity;

    invoke-static {v1}, Lcom/waiqin365/lightapp/im/activity/GroupDetailsActivity;->f(Lcom/waiqin365/lightapp/im/activity/GroupDetailsActivity;)Lcom/hyphenate/chat/EMGroup;

    move-result-object v1

    invoke-virtual {v1}, Lcom/hyphenate/chat/EMGroup;->getGroupName()Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1}, Lcom/waiqin365/lightapp/im/activity/GroupDetailsActivity;->a(Lcom/waiqin365/lightapp/im/activity/GroupDetailsActivity;Ljava/lang/String;)Ljava/lang/String;

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/br;->a:Lcom/waiqin365/lightapp/im/activity/bq;

    iget-object v0, v0, Lcom/waiqin365/lightapp/im/activity/bq;->a:Lcom/waiqin365/lightapp/im/activity/GroupDetailsActivity;

    iget-object v1, p0, Lcom/waiqin365/lightapp/im/activity/br;->a:Lcom/waiqin365/lightapp/im/activity/bq;

    iget-object v1, v1, Lcom/waiqin365/lightapp/im/activity/bq;->a:Lcom/waiqin365/lightapp/im/activity/GroupDetailsActivity;

    invoke-static {v1}, Lcom/waiqin365/lightapp/im/activity/GroupDetailsActivity;->d(Lcom/waiqin365/lightapp/im/activity/GroupDetailsActivity;)Ljava/util/ArrayList;

    move-result-object v1

    invoke-virtual {v1}, Ljava/util/ArrayList;->size()I

    move-result v1

    invoke-static {v0, v1}, Lcom/waiqin365/lightapp/im/activity/GroupDetailsActivity;->a(Lcom/waiqin365/lightapp/im/activity/GroupDetailsActivity;I)I

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/br;->a:Lcom/waiqin365/lightapp/im/activity/bq;

    iget-object v0, v0, Lcom/waiqin365/lightapp/im/activity/bq;->a:Lcom/waiqin365/lightapp/im/activity/GroupDetailsActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/im/activity/GroupDetailsActivity;->h(Lcom/waiqin365/lightapp/im/activity/GroupDetailsActivity;)Landroid/widget/TextView;

    move-result-object v0

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string/jumbo v2, "("

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    iget-object v2, p0, Lcom/waiqin365/lightapp/im/activity/br;->a:Lcom/waiqin365/lightapp/im/activity/bq;

    iget-object v2, v2, Lcom/waiqin365/lightapp/im/activity/bq;->a:Lcom/waiqin365/lightapp/im/activity/GroupDetailsActivity;

    invoke-static {v2}, Lcom/waiqin365/lightapp/im/activity/GroupDetailsActivity;->g(Lcom/waiqin365/lightapp/im/activity/GroupDetailsActivity;)I

    move-result v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string/jumbo v2, ")"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/br;->a:Lcom/waiqin365/lightapp/im/activity/bq;

    iget-object v0, v0, Lcom/waiqin365/lightapp/im/activity/bq;->a:Lcom/waiqin365/lightapp/im/activity/GroupDetailsActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/im/activity/GroupDetailsActivity;->e(Lcom/waiqin365/lightapp/im/activity/GroupDetailsActivity;)Lcom/waiqin365/lightapp/im/activity/cn;

    move-result-object v0

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/im/activity/cn;->notifyDataSetChanged()V

    invoke-static {}, Lcom/hyphenate/chat/EMClient;->getInstance()Lcom/hyphenate/chat/EMClient;

    move-result-object v0

    invoke-virtual {v0}, Lcom/hyphenate/chat/EMClient;->getCurrentUser()Ljava/lang/String;

    move-result-object v0

    iget-object v1, p0, Lcom/waiqin365/lightapp/im/activity/br;->a:Lcom/waiqin365/lightapp/im/activity/bq;

    iget-object v1, v1, Lcom/waiqin365/lightapp/im/activity/bq;->a:Lcom/waiqin365/lightapp/im/activity/GroupDetailsActivity;

    invoke-static {v1}, Lcom/waiqin365/lightapp/im/activity/GroupDetailsActivity;->f(Lcom/waiqin365/lightapp/im/activity/GroupDetailsActivity;)Lcom/hyphenate/chat/EMGroup;

    move-result-object v1

    invoke-virtual {v1}, Lcom/hyphenate/chat/EMGroup;->getOwner()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/br;->a:Lcom/waiqin365/lightapp/im/activity/bq;

    iget-object v0, v0, Lcom/waiqin365/lightapp/im/activity/bq;->a:Lcom/waiqin365/lightapp/im/activity/GroupDetailsActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/im/activity/GroupDetailsActivity;->m(Lcom/waiqin365/lightapp/im/activity/GroupDetailsActivity;)Landroid/widget/Button;

    move-result-object v0

    invoke-virtual {v0, v4}, Landroid/widget/Button;->setVisibility(I)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/br;->a:Lcom/waiqin365/lightapp/im/activity/bq;

    iget-object v0, v0, Lcom/waiqin365/lightapp/im/activity/bq;->a:Lcom/waiqin365/lightapp/im/activity/GroupDetailsActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/im/activity/GroupDetailsActivity;->n(Lcom/waiqin365/lightapp/im/activity/GroupDetailsActivity;)Landroid/widget/Button;

    move-result-object v0

    invoke-virtual {v0, v3}, Landroid/widget/Button;->setVisibility(I)V

    :goto_0
    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/br;->a:Lcom/waiqin365/lightapp/im/activity/bq;

    iget-object v0, v0, Lcom/waiqin365/lightapp/im/activity/bq;->a:Lcom/waiqin365/lightapp/im/activity/GroupDetailsActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/im/activity/GroupDetailsActivity;->o(Lcom/waiqin365/lightapp/im/activity/GroupDetailsActivity;)Ljava/util/List;

    move-result-object v0

    iget-object v1, p0, Lcom/waiqin365/lightapp/im/activity/br;->a:Lcom/waiqin365/lightapp/im/activity/bq;

    iget-object v1, v1, Lcom/waiqin365/lightapp/im/activity/bq;->a:Lcom/waiqin365/lightapp/im/activity/GroupDetailsActivity;

    invoke-static {v1}, Lcom/waiqin365/lightapp/im/activity/GroupDetailsActivity;->f(Lcom/waiqin365/lightapp/im/activity/GroupDetailsActivity;)Lcom/hyphenate/chat/EMGroup;

    move-result-object v1

    invoke-virtual {v1}, Lcom/hyphenate/chat/EMGroup;->getGroupId()Ljava/lang/String;

    move-result-object v1

    invoke-interface {v0, v1}, Ljava/util/List;->contains(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_1

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/br;->a:Lcom/waiqin365/lightapp/im/activity/bq;

    iget-object v0, v0, Lcom/waiqin365/lightapp/im/activity/bq;->a:Lcom/waiqin365/lightapp/im/activity/GroupDetailsActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/im/activity/GroupDetailsActivity;->p(Lcom/waiqin365/lightapp/im/activity/GroupDetailsActivity;)Landroid/widget/ImageView;

    move-result-object v0

    const v1, 0x7f02036e

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setImageResource(I)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/br;->a:Lcom/waiqin365/lightapp/im/activity/bq;

    iget-object v0, v0, Lcom/waiqin365/lightapp/im/activity/bq;->a:Lcom/waiqin365/lightapp/im/activity/GroupDetailsActivity;

    const/4 v1, 0x1

    invoke-static {v0, v1}, Lcom/waiqin365/lightapp/im/activity/GroupDetailsActivity;->a(Lcom/waiqin365/lightapp/im/activity/GroupDetailsActivity;Z)Z

    :goto_1
    return-void

    :cond_0
    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/br;->a:Lcom/waiqin365/lightapp/im/activity/bq;

    iget-object v0, v0, Lcom/waiqin365/lightapp/im/activity/bq;->a:Lcom/waiqin365/lightapp/im/activity/GroupDetailsActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/im/activity/GroupDetailsActivity;->m(Lcom/waiqin365/lightapp/im/activity/GroupDetailsActivity;)Landroid/widget/Button;

    move-result-object v0

    invoke-virtual {v0, v3}, Landroid/widget/Button;->setVisibility(I)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/br;->a:Lcom/waiqin365/lightapp/im/activity/bq;

    iget-object v0, v0, Lcom/waiqin365/lightapp/im/activity/bq;->a:Lcom/waiqin365/lightapp/im/activity/GroupDetailsActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/im/activity/GroupDetailsActivity;->n(Lcom/waiqin365/lightapp/im/activity/GroupDetailsActivity;)Landroid/widget/Button;

    move-result-object v0

    invoke-virtual {v0, v4}, Landroid/widget/Button;->setVisibility(I)V

    goto :goto_0

    :cond_1
    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/br;->a:Lcom/waiqin365/lightapp/im/activity/bq;

    iget-object v0, v0, Lcom/waiqin365/lightapp/im/activity/bq;->a:Lcom/waiqin365/lightapp/im/activity/GroupDetailsActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/im/activity/GroupDetailsActivity;->p(Lcom/waiqin365/lightapp/im/activity/GroupDetailsActivity;)Landroid/widget/ImageView;

    move-result-object v0

    const v1, 0x7f02036d

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setImageResource(I)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/activity/br;->a:Lcom/waiqin365/lightapp/im/activity/bq;

    iget-object v0, v0, Lcom/waiqin365/lightapp/im/activity/bq;->a:Lcom/waiqin365/lightapp/im/activity/GroupDetailsActivity;

    invoke-static {v0, v3}, Lcom/waiqin365/lightapp/im/activity/GroupDetailsActivity;->a(Lcom/waiqin365/lightapp/im/activity/GroupDetailsActivity;Z)Z

    goto :goto_1
.end method
